//
// Created by 吴锐 on 2022/2/26.
//

#include "iostream"

using namespace std;

class Base1 {
public:
    int a;

    Base1(){
        a = 100;
    }
};

class Base2 {
public:
    int a;

    Base2(){
        a = 200;
    }
};

//子类
class Son : public Base1, public Base2 {
public:
    int c;
    int d;

    Son(){
        c = 300;
        d = 400;
    }
};

void test01(){
    Son s;
    cout << "sizeof(Son) = " << sizeof(Son) << endl;

    cout << s.Base1::a << endl;
    cout << s.Base2::a << endl;
}

int main(){
    test01();
    return 0;
}